package com.hm.shopping.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hm.shopping.auto.su.BaseController;

/**
 * @author shishun.wang
 * @date 2018年1月18日 上午11:55:24
 * @version 1.0
 * @describe
 */
@Controller
public class ErrorPageController extends BaseController{

	@RequestMapping("404")
	public String pageNotFound() {
		return "404";
	}
	
	/**
	 * 无数据操作权限
	 * @return
	 */
	@RequestMapping("no_data_access.do")
	public String noDataAccess(Model model,String m) {
		model.addAttribute("errorMsg", m);
		return "no_data_access";
	}
}
